public class test3 {
    public static void main(String[] args) {
        int [] arr=new int [10];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=(int)(Math.random()*100);
            for (int j=0;j<i;j++) {
                if(arr[j]==arr[i]){
                    i--;
                    break;
                }
            }
        }
        for (int i = 0; i < arr.length ; i++) {
            System.out.println(arr[i]);
        }
    }
}
